package com.app.game.bet.dozen;


public class BetGroup extends BetTwoToOne{
	
	public static enum Type{FIRST,SECOND,THIRD};
	private Type type;
	
	public BetGroup(Type type) {
		super();
		this.type = type;
	}
	
	@Override
	protected boolean isWin(int result) {
		if(type == Type.FIRST && result >= 1 && result <=12){
			return true;
		}
		if(type == Type.SECOND && result >= 13 && result <=24){
			return true;
		}
		if(type == Type.THIRD && result >= 25 && result <=36){
			return true;
		}
		return false;
	}

}
